package com.blb.zycommunity.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.blb.zycommunity.entity.SysArea;
import com.blb.zycommunity.entity.ZyCommunity;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 小区  服务类
 * </p>
 *
 * @author chenheng
 * @since 2023-11-20
 */
public interface IZyCommunityService extends IService<ZyCommunity> {

    /**
     * 小区信息的分页查询
     * @param communityName
     * @param communityCode
     * @return
     */
    IPage<ZyCommunity> findCommunityPage(Page<ZyCommunity> page, String communityName, String communityCode,String communityId);

    /**
     * 根据化码查询地方信息
     * @param provinceCode
     * @param cityCode
     * @param townCode
     * @return
     */
    List<SysArea> findAreaByCode(String provinceCode,String cityCode,String townCode);

    /**
     * 查询所有的地区信息
     * @return
     */
    List<SysArea> findAll();

    List<ZyCommunity> findAllCommunity();

    ZyCommunity selectCommunityById(String id);
}
